﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Enums
{
    public class MessageText
    {
        #region 消息框标题
        public const string MESSAGEBOX_CAPTION_TIP = "提示";
        public const string MESSAGEBOX_CAPTION_WARN = "警告";
        public const string MESSAGEBOX_CAPTION_ERROR = "错误";
        #endregion
        #region 通用
        public const string SQL_ERROR_ADD = "第{0}行记录更新失败，请联系管理员！";
        public const string SQL_ERROR_UPDATE = "第{0}行记录更新失败，请联系管理员！";
        public const string TIP_ERROR_ID = "记录ID异常，请联系管理员！错误信息：{0}";
        public const string TIP_ERROR_PLACE = "下达异常，请联系管理员！";
        public const string TIP_ERROR_CANCEL = "取消异常，请联系管理员！";
        public const string TIP_ERROR_CHECKOUT = "结算异常，请联系管理员！";
        public const string TIP_ERROR_ADD = "新增异常，请联系管理员！";
        public const string TIP_ERROR_UPDATE = "修改异常，请联系管理员！";
        public const string TIP_ERROR_INIT = "初始化异常，请联系管理员！";
        public const string TIP_ERROR_RECEIPT = "收款异常，请联系管理员！";
        public const string TIP_ERROR_RECORD = "记录异常，请联系管理员！";
        public const string TIP_ERROR_REVOKE = "撤销异常，请联系管理员！";
        public const string TIP_ERROR_UNNORMAL = "第{0}行订单非正常状态，无法操作！";
        public const string TIP_ERROR_RECOVERY = "恢复异常，请联系管理员！";
        public const string TIP_ERROR_PRINT = "打印异常，请联系管理员！";
        public const string TIP_ERROR_PAY = "结算异常，请联系管理员！";
        public const string TIP_ERROR_SIGN = "回签异常，请联系管理员！";
        public const string TIP_ERROR_ISRECOVERY = "第{0}行订单已恢复，请勿重复操作！";
        public const string TIP_ERROR_SELECTCOUNT_ONE = "请选择一条记录后再进行操作！";
        public const string TIP_ERROR_SELECTCOUNT_NULL = "请选择记录后再进行操作！"; 
        public const string TIP_ERROR_SELECT_DTOORDER = "请选择销售记录后再进行操作！";
        public const string TIP_WARN_DATA_NONE = "操作失败，数据为空";
        public const string TIP_SUCCESS_DELETE = "删除成功";
        public const string TIP_SUCCESS_CANCEL = "取消成功";
        public const string TIP_SUCCESS_REVOKE = "撤销成功";
        public const string TIP_SUCCESS_RECOVERY = "恢复成功";
        public const string TIP_SUCCESS_SAVE = "保存成功";
        public const string TIP_SUCCESS_PLACE = "下达成功";
        public const string TIP_SUCCESS_IMPORT = "导入成功";
        public const string TIP_SUCCESS_GENERATE = "生成成功";
        public const string TIP_SUCCESS_RECHARGE = "充值成功";
        public const string TIP_SUCCESS_CHECKOUT = "结算成功";
        public const string TIP_SUCCESS_PAY = "结算成功";
        public const string TIP_SUCCESS_SIGN = "回签成功";
        public const string TIP_SUCCESS_ADD = "新增成功";
        public const string TIP_SUCCESS_UPDATE = "修改成功";
        public const string TIP_SUCCESS_INIT = "初始化成功";
        public const string TIP_SUCCESS_RECEIPT = "收款成功";
        public const string TIP_SUCCESS_RECORD = "记录成功";
        public const string TIP_FILE_NON_EXIST = "文件不存在";
        public const string TIP_FILE_INVALID = "文件无效，请检查文件是否关闭，格式是否正确";
        public const string LISTITEM_TEXT = "Text";
        public const string LISTITEM_VALUE = "Value";
        public const string LIST_NUMBER_CHINESE = "一二三四五六七八九十百千万亿";

        public const string TIP_CHOISE_CUSTOMER = "请选择客户";
        public const string TIP_CHOISE_MATERIEL = "请选择物料";
        #region FORMAT
        /// <summary>
        /// 格式：yyyy-MM-dd
        /// </summary>
        public const string FORMAT_DATE = "yyyy-MM-dd";
        public const string FORMAT_DATE_WEEK = "{0}({1})";
        #endregion
        #region KEY
        public const string KEY_ENTER = "\n";
        public const string KEY_COMMA = ",";
        #endregion
        #endregion
        #region 客户
        public const string SQL_ERROR_CUSTOMER_EXIST = "第{0}行客户已存在，添加失败！";
        public const string CHECK_ERROR_CUSTOMER_CODE = "第{0}行客户编号为空，请输入";
        public const string CHECK_ERROR_CUSTOMER_NAME = "第{0}行客户名称为空，请输入";
        public const string CHECK_ERROR_CUSTOMER_NO = "第{0}行客户号须为整数，请核对";
        public const string CHECK_REPEAT_CUSTOMER_CODE = "客户编号重复，请修改";
        public const string CHECK_REPEAT_CUSTOMER_NAME = "客户名称重复，请修改";
        public const string CHECK_REPEAT_CUSTOMER_NO = "该付款方式下已经存在相同客户号，请修改";
        #endregion
        #region 物料
        public const string CHECK_ERROR_MATERIEL_NAME = "第{0}行物料种类为空，请输入";
        public const string CHECK_ERROR_MATERIEL_MODEL = "第{0}行规格型号为空，请输入";
        public const string CHECK_INPUT_MATERIEL_NAME = "物料种类为空，请输入";
        public const string CHECK_INPUT_MATERIEL_MODEL = "规格型号为空，请输入";
        #endregion
        #region 生产单
        public const string CHECK_ERROR_STO_CUSTOMER_CODE = "客户编号为空，请输入";
        public const string CHECK_ERROR_STO_CUSTOMER_NAME = "客户名称为空，请输入"; 
        public const string CHECK_ERROR_STO_ITEM_EMPTY = "请输入生产单条目";
        public const string CHECK_ERROR_STO_MATERIEL_NAME = "第{0}行物料类型为空，请输入";
        public const string CHECK_ERROR_STO_MATERIEL_MODEL = "第{0}行规格型号为空，请输入";
        public const string CHECK_ERROR_STO_QTY = "第{0}行数量有误，请核对";
        public const string CHECK_INPUT_STO_QTY = "数量有误，请核对";
        public const string CHECK_ERROR_STO_CUSTOMER_UNIQUE = "选择记录客户不统一，无法开单";
        #endregion
        #region 销售单
        public const string CHECK_ERROR_DTO_CUSTOMER = "客户未选择，请核对";
        public const string CHECK_ERROR_DTO_PAYAMOUNT = "结欠金额有误，请核对";
        public const string CHECK_ERROR_DTO_CUSTOMER_NO = "客户号有误，请核对";
        public const string CHECK_ERROR_DTO_MATERIEL = "第{0}行未选择物料，请核对";
        public const string CHECK_ERROR_DTO_QTY = "第{0}行开单量有误，请核对";
        public const string CHECK_ERROR_DTO_PRICE = "第{0}行价格有误，请核对";
        public const string CHECK_ERROR_DTO_ITEM_EMPTY = "请输入销售单条目";
        public const string CHECK_INPUT_DTO_QTY = "数量有误，请核对";
        public const string CHECK_INPUT_DTO_PRICE = "价格有误，请核对";
        #endregion
        #region 结算
        public const string CHECK_ERROR_NORECORD = "该客户无历史结算";
        public const string CHECK_ERROR_ARREARS = "结欠金额有误，请核对";
        public const string CHECK_ERROR_CHECKOUTDATE = "结算日期必须晚于{0}，请核对";
        public const string CHECK_ERROR_PAIDDATE = "结算日期不能早于{0}，请核对";
        public const string CHECK_ERROR_UNPAID = "上期结算未到账，无法操作";
        public const string TIP_DELETE_CHECKOUT = "上期结算日期：{0}，结算金额：{1}\n确定撤销吗？";
        #endregion
        #region 收款
        public const string CHECK_ERROR_PAID = "收款金额有误，请核对";
        #endregion
    }
}
